Modified Java Script
Description
Modified Java Script is a process entry in the Scripting Plugin for Process Studio process. It is an easy, expression-based user interface for building JavaScript expressions. The entry also allows you to create multiple scripts for each process.
Note: The process has performance disadvantages due to the fact that it is interpreting the JavaScript.
Configurations
Java Script Functions Section
The section provides a tree view of your available scripts, functions, input fields, and output fields.
| No. | Tree View | Description |
|---|---|---|
| 1 | Transform Scripts | Displays a list of scripts you have created in the entry. |
| 2 | Transform Constants | Displays a list of pre-defined, static constants including Success_process and error_process. |
| 3 | Transform Functions* | Lists a variety of String, Numeric, Date, Logic, and specialized functions you can use to create your script. To add a function to your script, simply double-click on the function or drag it to the location in your script that you wish to insert it. |
| 4 | Secret | Select Y to mask the specific output field generated by the script. The system hides the value (shows ********) in all downstream steps, previews, and logs. Select N to keep the generated data visible as plain text. The system displays the actual value in previews and logs and writes it normally to any final output file or database. Important: - The secret setting applies only to the final output fields declared in the step configuration. - The step attempts to automatically mask secrets sent to standard output commands (such as Alert, print, and println) during runtime. Furthermore, the step displays a warning upon saving if the script contains potential secret leaks. - The step cannot track or protect secrets modified directly inside the script body. For example, manually combining a secret variable with plain text (such as "Token: " + secretValue) creates a new, unprotected value. |
Java Script Section
The section is where you edit the script for the entry. You can insert functions, constants, input fields, etc. from the tree control on the left by double-clicking on the node you wish to insert or by dragging the object onto the Java Script panel.
*Transform Functions: Transform functions are broadly classified as follows:
| No. | Function | Description |
|---|---|---|
| 1 | Date Functions | This has several JavaScript Date functions. |
| 2 | File Functions | This Category has several, functions that do simple verifications or actions related to files and folders—for example, fileExist() or createFolder(). |
| 3 | Logic Functions | This has several JavaScript Logic functions. |
| 4 | Numeric Functions | This has several JavaScript Numeric functions. |
| 5 | Special Functions | This has several Contains a mix of utility functions. |
| 6 | String Functions | This has several JavaScript String functions. |